const home = [
  {
    path: "/",
    redirect: "home"
  },
  {
    name: "home",
    // component: resolve => require(["@v/home"], resolve), //已弃用
    component: () => import(/* webpackChunkName: "Home" */ "@v/home"),
    meta: {
      title: "主页"
    }
  }
];
// 页面组件 webpackChunkName 注释可以友好化分包的名称 需 webpack 2.4+
// () => import( /* webpackChunkName: "Home" */ '@v/home'); //页面分包
// 使用 require + resolve 可以获得更好的通用性 但不支持 webpackChunkName 注解 用 id 做感觉可读性不好
// const Home = resolve => require(['@/components/home/home'], resolve); // 懒路由加载
export default home;
